/*!
 * jyw-sdk v1.0.0
 * (c) 2020-2022 yw
 * Released under the MIT License.
 */
! function(t, e) {
	"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" ==
		typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).YW =
		e()
}(this, (function() {
	"use strict";

	function t(t, e, r) {
		return t(r = {
			path: e,
			exports: {},
			require: function(t,
				e) {
				return function() {
					throw new Error(
						"Dynamic requires are not currently supported by @rollup/plugin-commonjs"
					)
				}(null == e && r.path)
			}
		}, r.exports), r.exports
	}
	var e = t((function(t) {
		var e =
			function(t) {
				var e, r = Object.prototype,
					n = r.hasOwnProperty,
					i = "function" == typeof Symbol ? Symbol : {},
					a = i.iterator || "@@iterator",
					o = i.asyncIterator || "@@asyncIterator",
					c = i.toStringTag || "@@toStringTag";

				function s(t, e, r) {
					return Object.defineProperty(t, e, {
						value: r,
						enumerable: !0,
						configurable: !0,
						writable: !0
					}), t[e]
				}
				try {
					s({}, "")
				} catch (t) {
					s =
						function(t, e, r) {
							return t[e] = r
						}
				}

				function u(t, e, r, n) {
					var i = e && e.prototype instanceof v ? e : v,
						a = Object.create(i.prototype),
						o = new L(n || []);
					return a._invoke = function(t, e, r) {
						var n =
							f;
						return function(i, a) {
							if (n === p) throw new Error(
								"Generator is already running");
							if (n === d) {
								if (
									"throw" === i) throw a;
								return E()
							}
							for (r.method = i,
								r.arg = a;;) {
								var o = r.delegate;
								if (o) {
									var c = S(o,
										r);
									if (c) {
										if (c === y) continue;
										return c
									}
								}
								if (
									"next" === r.method) r.sent = r._sent = r.arg;
								else if ("throw" === r.method) {
									if (n === f) throw n = d, r
										.arg;
									r.dispatchException(r.arg)
								} else "return" === r
									.method && r.abrupt("return", r.arg);
								n = p;
								var s = l(t, e, r);
								if ("normal" === s.type) {
									if (
										n = r.done ? d : h, s.arg === y)
										continue;
									return {
										value: s.arg,
										done: r
											.done
									}
								}
								"throw" === s.type && (n = d, r.method =
									"throw", r.arg = s.arg)
							}
						}
					}(t, r, o), a
				}

				function l(t, e, r) {
					try {
						return {
							type: "normal",
							arg: t.call(e, r)
						}
					} catch (
						t) {
						return {
							type: "throw",
							arg: t
						}
					}
				}
				t.wrap = u;
				var f = "suspendedStart",
					h = "suspendedYield",
					p = "executing",
					d = "completed",
					y = {};

				function v() {}

				function m() {}

				function g() {}
				var b = {};
				b[a] = function() {
					return this
				};
				var w = Object.getPrototypeOf,
					x = w && w(w(Y([])));
				x && x !== r && n.call(x, a) && (b = x);
				var k = g.prototype = v.prototype = Object
					.create(b);

				function H(t) {
					["next", "throw", "return"].forEach((function(e) {
						s(t, e, (function(
							t) {
							return this._invoke(e, t)
						}))
					}))
				}

				function _(t, e) {
					function r(i, a, o, c) {
						var s = l(t[i], t, a);
						if ("throw" !== s.type) {
							var
								u = s.arg,
								f = u.value;
							return f && "object" == typeof f && n.call(f,
									"__await") ? e.resolve(f.__await).then((function(t) {
									r("next",
										t, o, c)
								}), (function(t) {
									r("throw", t, o, c)
								})) : e
								.resolve(f).then((function(t) {
									u.value = t, o(u)
								}), (function(
									t) {
									return r("throw", t, o, c)
								}))
						}
						c(s.arg)
					}
					var i;
					this._invoke = function(t, n) {
						function a() {
							return new e((function(e, i) {
								r(t, n, e,
									i)
							}))
						}
						return i = i ? i.then(a, a) : a()
					}
				}

				function S(t, r) {
					var n = t.iterator[r.method];
					if (n === e) {
						if (r.delegate =
							null, "throw" === r.method) {
							if (t.iterator.return && (r.method =
									"return", r.arg = e, S(t, r), "throw" === r.method)) return y;
							r.method = "throw", r.arg = new TypeError(
								"The iterator does not provide a 'throw' method")
						}
						return y
					}
					var
						i = l(n, t.iterator, r.arg);
					if ("throw" === i.type) return r.method =
						"throw", r.arg = i.arg, r.delegate = null, y;
					var a = i.arg;
					return a ? a
						.done ? (r[t.resultName] = a.value, r.next = t.nextLoc, "return" !== r
							.method && (r.method = "next", r.arg = e), r.delegate = null, y) : a : (
							r.method = "throw", r.arg = new TypeError(
								"iterator result is not an object"), r.delegate = null, y)
				}

				function C(t) {
					var e = {
						tryLoc: t[0]
					};
					1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[
						3]), this.tryEntries.push(e)
				}

				function J(t) {
					var e = t.completion || {};
					e.type = "normal", delete e.arg, t.completion = e
				}

				function L(t) {
					this.tryEntries = [{
							tryLoc: "root"
						}], t.forEach(C, this), this
						.reset(!0)
				}

				function Y(t) {
					if (t) {
						var r = t[a];
						if (r) return r.call(t);
						if ("function" ==
							typeof t.next) return t;
						if (!isNaN(t.length)) {
							var i = -1,
								o = function r() {
									for (; ++i < t.length;)
										if (n.call(t, i)) return r.value = t[i], r.done = !1,
											r;
									return r.value = e, r.done = !0, r
								};
							return o.next =
								o
						}
					}
					return {
						next: E
					}
				}

				function E() {
					return {
						value: e,
						done: !0
					}
				}
				return m.prototype = k.constructor =
					g, g.constructor = m, m.displayName = s(g, c, "GeneratorFunction"), t
					.isGeneratorFunction = function(t) {
						var e = "function" == typeof t && t
							.constructor;
						return !!e && (e === m || "GeneratorFunction" === (e
							.displayName || e.name))
					}, t.mark = function(t) {
						return Object
							.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g, s(t,
								c, "GeneratorFunction")), t.prototype = Object.create(k), t
					}, t
					.awrap = function(t) {
						return {
							__await: t
						}
					}, H(_.prototype), _.prototype[o] =
					function() {
						return this
					}, t.AsyncIterator = _, t.async = function(e, r, n, i,
						a) {
						void 0 === a && (a = Promise);
						var o = new _(u(e, r, n, i),
							a);
						return t.isGeneratorFunction(r) ? o : o.next().then((function(
							t) {
							return t.done ? t.value : o.next()
						}))
					}, H(k), s(k, c,
						"Generator"), k[a] = function() {
						return this
					}, k.toString =
					function() {
						return "[object Generator]"
					}, t.keys = function(t) {
						var e = [];
						for (
							var r in t) e.push(r);
						return e.reverse(),
							function r() {
								for (; e.length;) {
									var n = e.pop();
									if (n in t) return r
										.value = n, r.done = !1, r
								}
								return r.done = !0, r
							}
					}, t
					.values = Y, L.prototype = {
						constructor: L,
						reset: function(t) {
							if (this
								.prev = 0, this.next = 0, this.sent = this._sent = e, this
								.done = !1, this.delegate = null, this.method = "next", this
								.arg = e, this.tryEntries.forEach(J), !t)
								for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !
									isNaN(+r.slice(1)) && (this[r] = e)
						},
						stop: function() {
							this
								.done = !0;
							var t = this.tryEntries[0].completion;
							if (
								"throw" === t.type) throw t.arg;
							return this.rval
						},
						dispatchException: function(t) {
							if (this.done) throw t;
							var r = this;

							function i(n, i) {
								return c.type = "throw", c.arg = t, r.next = n,
									i && (r.method = "next", r.arg = e), !!i
							}
							for (var a = this
									.tryEntries.length - 1; a >= 0; --a) {
								var o = this
									.tryEntries[a],
									c = o.completion;
								if ("root" === o.tryLoc) return i(
									"end");
								if (o.tryLoc <= this.prev) {
									var s = n.call(o,
											"catchLoc"),
										u = n.call(o, "finallyLoc");
									if (s && u) {
										if (this
											.prev < o.catchLoc) return i(o.catchLoc, !0);
										if (
											this.prev < o.finallyLoc) return i(o
											.finallyLoc)
									} else if (s) {
										if (this.prev < o.catchLoc)
											return i(o.catchLoc, !0)
									} else {
										if (!u)
											throw new Error(
												"try statement without catch or finally");
										if (
											this.prev < o.finallyLoc) return i(o
											.finallyLoc)
									}
								}
							}
						},
						abrupt: function(t, e) {
							for (var r =
									this.tryEntries.length - 1; r >= 0; --r) {
								var i = this
									.tryEntries[r];
								if (i.tryLoc <= this.prev && n.call(i,
										"finallyLoc") && this.prev < i.finallyLoc) {
									var a =
										i;
									break
								}
							}
							a && ("break" === t || "continue" === t) && a
								.tryLoc <= e && e <= a.finallyLoc && (a = null);
							var o = a ? a
								.completion : {};
							return o.type = t, o.arg = e, a ? (this
									.method = "next", this.next = a.finallyLoc, y) : this
								.complete(o)
						},
						complete: function(t, e) {
							if ("throw" === t.type)
								throw t.arg;
							return "break" === t.type || "continue" === t
								.type ? this.next = t.arg : "return" === t.type ? (this.rval =
									this.arg = t.arg, this.method = "return", this.next = "end"
								) : "normal" === t.type && e && (this.next = e), y
						},
						finish: function(t) {
							for (var e = this.tryEntries.length - 1; e >= 0; --
								e) {
								var r = this.tryEntries[e];
								if (r.finallyLoc === t)
									return this.complete(r.completion, r.afterLoc), J(r), y
							}
						},
						catch: function(t) {
							for (var e = this.tryEntries.length - 1; e >= 0; --
								e) {
								var r = this.tryEntries[e];
								if (r.tryLoc === t) {
									var n = r
										.completion;
									if ("throw" === n.type) {
										var i = n.arg;
										J(r)
									}
									return i
								}
							}
							throw new Error(
								"illegal catch attempt")
						},
						delegateYield: function(t, r,
							n) {
							return this.delegate = {
								iterator: Y(t),
								resultName: r,
								nextLoc: n
							}, "next" === this.method && (this.arg = e), y
						}
					}, t
			}(t
				.exports);
		try {
			regeneratorRuntime = e
		} catch (t) {
			Function("r",
				"regeneratorRuntime = r")(e)
		}
	}));

	function r(t, e, r, n, i, a, o) {
		try {
			var c = t[a](o),
				s = c.value
		} catch (t) {
			return void r(t)
		}
		c.done ? e(s) : Promise.resolve(s).then(n, i)
	}
	var
		n = function(t) {
			return function() {
				var e = this,
					n = arguments;
				return new Promise((function(i, a) {
					var o = t.apply(e, n);

					function c(t) {
						r(o, i, a, c, s, "next", t)
					}

					function s(t) {
						r(o, i, a, c, s, "throw", t)
					}
					c(void 0)
				}))
			}
		};
	var i = function(t,
		e) {
		if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
	};

	function a(t, e) {
		for (var r = 0; r < e.length; r++) {
			var n = e[r];
			n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object
				.defineProperty(t, n.key, n)
		}
	}
	var o = function(t, e, r) {
			return e && a(t.prototype, e), r &&
				a(t, r), t
		},
		c = t((function(t) {
			function e(r) {
				return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? t
					.exports = e = function(t) {
						return typeof t
					} : t.exports = e = function(
						t) {
						return t && "function" == typeof Symbol && t.constructor === Symbol && t !==
							Symbol.prototype ? "symbol" : typeof t
					}, e(r)
			}
			t.exports = e
		})),
		s = function(t) {
			if (window.WebViewJavascriptBridge) return t(window.WebViewJavascriptBridge);
			if (
				document.addEventListener("WebViewJavascriptBridgeReady", (function() {
					t(window
						.WebViewJavascriptBridge)
				}), !1), window.WVJBCallbacks) return window.WVJBCallbacks
				.push(t);
			window.WVJBCallbacks = [t];
			var e = document.createElement("iframe");
			e.style.display = "none", e.src = "https://__bridge_loaded__", document.documentElement.appendChild(
				e), setTimeout((function() {
				document.documentElement.removeChild(e)
			}), 0)
		},
		u = function(t) {
			return t && "object" === c(t)
		},
		l = function(t, e, r) {
			var n = t && JSON.parse(t);
			"function" != typeof e && (e = function() {}),
				"function" != typeof r && (r = function() {}), "000000" === n.code ? e(n.content) : r(n)
		},
		f = function() {
			function t() {
				i(this, t), this._bridge = null
			}
			var r, a, c, f, h, p, d, y, v, m, g, b, w, x, k, H,
				_, S, C, J, L, Y, E, N, P, O, B, j;
			return o(t, [{
				key: "init",
				value: function() {
					var t =
						this;
					return new Promise((function(e, r) {
						s((function(r) {
							console.log(
								"连接成功"), t._bridge = r, e()
						}))
					}))
				}
			}, {
				key: "config",
				value: (
					j = n(e.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (
								t.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "config",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))),
					function(t) {
						return j.apply(this, arguments)
					})
			}, {
				key: "getAuthNoByFace",
				value: (B = n(e.mark((function t(r) {
					return e.wrap((function(t) {
						for (;;) switch (
							t.prev = t.next) {
							case 0:
								if (t.t0 = this._bridge, t
									.t0) {
									t.next =
										4;
									break
								}
								return t.next =
									4, this.init();
							case 4:
								u(r) || (r = {}), this._bridge
									.callHandler(
										"YHJavaScriptCallHandler", {
											method: "getAuthNoByFace",
											param: r
										}, (
											function(t) {
												l(t, r
													.success,
													r.fail)
											}));
							case 6:
							case "end":
								return t.stop()
						}
					}), t, this)
				}))), function(t) {
					return B
						.apply(this, arguments)
				})
			}, {
				key: "getScanCode",
				value: (O = n(e.mark((
					function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getScanCode",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return O.apply(this, arguments)
				})
			}, {
				key: "getUserInfoByIdcard",
				value: (P =
					n(e.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getUserInfoByIdcard",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))),
					function(t) {
						return P.apply(this, arguments)
					})
			}, {
				key: "writeSerialCommun",
				value: (N = n(e.mark((function t(r) {
					return e.wrap((function(t) {
						for (;;) switch (
							t.prev = t.next) {
							case 0:
								if (t.t0 = this._bridge, t
									.t0) {
									t.next =
										4;
									break
								}
								return t.next =
									4, this.init();
							case 4:
								u(r) || (r = {}), r
									.writeSerial && (r
										.writeSerial = JSON
										.stringify({
											content: r
												.writeSerial,
											target: "ix"
										})),
									this._bridge.callHandler(
										"YHJavaScriptCallHandler", {
											method: "writeSerialCommun",
											param: r
										}, (
											function(t) {
												l(t, r
													.success,
													r.fail)
											}));
							case 7:
							case "end":
								return t.stop()
						}
					}), t, this)
				}))), function(t) {
					return N
						.apply(this, arguments)
				})
			}, {
				key: "readSerialCommun",
				value: (E = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									"function" != typeof r && (r =
											function() {}), this
										._bridge.registerHandler(
											"readSerialCommun", (
												function(t) {
													r(t &&
														t
														.content
													)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return E.apply(this, arguments)
				})
			}, {
				key: "cancelOperate",
				value: (Y = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "cancelOperate",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return Y.apply(this, arguments)
				})
			}, {
				key: "getPrintOrder",
				value: (L = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getPrintOrder",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return L.apply(this, arguments)
				})
			}, {
				key: "getSerialNumber",
				value: (J = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getSerialNumber",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return J.apply(this, arguments)
				})
			}, {
				key: "useScanCode",
				value: (C = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "useScanCode",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return C.apply(this, arguments)
				})
			}, {
				key: "getAuthNoByCode",
				value: (S = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getAuthNoByCode",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return S.apply(this, arguments)
				})
			}, {
				key: "getUserInfoByFace",
				value: (_ =
					n(e.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getUserInfoByFace",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))),
					function(t) {
						return _.apply(this, arguments)
					})
			}, {
				key: "closeScanCode",
				value: (H = n(e.mark((function t(r) {
					return e.wrap((function(t) {
						for (;;) switch (
							t.prev = t.next) {
							case 0:
								if (t.t0 = this._bridge, t
									.t0) {
									t.next =
										4;
									break
								}
								return t.next =
									4, this.init();
							case 4:
								u(r) || (r = {}), this._bridge
									.callHandler(
										"YHJavaScriptCallHandler", {
											method: "closeScanCode",
											param: r
										}, (
											function(t) {
												l(t, r
													.success,
													r.fail)
											}));
							case 6:
							case "end":
								return t.stop()
						}
					}), t, this)
				}))), function(t) {
					return H
						.apply(this, arguments)
				})
			}, {
				key: "facePay",
				value: (k = n(e.mark((
					function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "facePay",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return k.apply(this, arguments)
				})
			}, {
				key: "useReadCert",
				value: (x = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "useReadCert",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return x.apply(this, arguments)
				})
			}, {
				key: "closeReadCert",
				value: (w = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "closeReadCert",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return w.apply(this, arguments)
				})
			}, {
				key: "startSpeak",
				value: (b = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "startSpeak",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return b.apply(this, arguments)
				})
			}, {
				key: "stopSpeak",
				value: (g = n(e.mark(
					(function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "stopSpeak",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return g.apply(this, arguments)
				})
			}, {
				key: "useReadSsCard",
				value: (m = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "useReadSsCard",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return m.apply(this, arguments)
				})
			}, {
				key: "closeReadSsCard",
				value: (v = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "closeReadSsCard",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return v.apply(this, arguments)
				})
			}, {
				key: "faceIdentity",
				value: (y = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "faceIdentity",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return y.apply(this, arguments)
				})
			}, {
				key: "backToNative",
				value: (d = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "backToNative",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return d.apply(this, arguments)
				})
			}, {
				key: "selfFeePay",
				value: (p = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "selfFeePay",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return p.apply(this, arguments)
				})
			}, {
				key: "settleResult",
				value: (h = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "settleResult",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return h.apply(this, arguments)
				})
			}, {
				key: "getLocation",
				value: (f = n(e
					.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getLocation",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return f.apply(this, arguments)
				})
			}, {
				key: "getAuthNoByFacePhoto",
				value: (
					c = n(e.mark((function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (
								t.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "getAuthNoByFacePhoto",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))),
					function(t) {
						return c.apply(this, arguments)
					})
			}, {
				key: "getScanPayCode",
				value: (a = n(e.mark((function t(r) {
					return e.wrap((function(t) {
						for (;;) switch (
							t.prev = t.next) {
							case 0:
								if (t.t0 = this._bridge, t
									.t0) {
									t.next =
										4;
									break
								}
								return t.next =
									4, this.init();
							case 4:
								u(r) || (r = {}), this._bridge
									.callHandler(
										"YHJavaScriptCallHandler", {
											method: "getScanPayCode",
											param: r
										}, (
											function(t) {
												l(t, r
													.success,
													r.fail)
											}));
							case 6:
							case "end":
								return t.stop()
						}
					}), t, this)
				}))), function(t) {
					return a
						.apply(this, arguments)
				})
			}, {
				key: "payNative",
				value: (r = n(e.mark((
					function t(r) {
						return e.wrap((function(t) {
							for (;;) switch (t
								.prev = t.next) {
								case 0:
									if (t.t0 = this._bridge, t
										.t0) {
										t.next =
											4;
										break
									}
									return t.next =
										4, this.init();
								case 4:
									u(r) || (r = {}), this._bridge
										.callHandler(
											"YHJavaScriptCallHandler", {
												method: "payNative",
												param: r
											}, (
												function(t) {
													l(t, r
														.success,
														r.fail)
												}));
								case 6:
								case "end":
									return t.stop()
							}
						}), t, this)
					}))), function(
					t) {
					return r.apply(this, arguments)
				})
			}]), t
		}();
	return f.prototype.version = "1.0.0",
		new f
}));